import com.qingcheng.pojo.order.OrderSize;
import com.qingcheng.service.order.OrderService;
import org.apache.commons.beanutils.BeanUtils;
import org.junit.Test;
import org.springframework.security.crypto.bcrypt.BCrypt;

import java.lang.reflect.InvocationTargetException;

/**
 * Created by yuanxin
 * Date:2019/6/27
 * Time:21:27
 */
public class test {
    /**
     *
     */
    @Test
    public void test() throws InvocationTargetException, IllegalAccessException {
        OrderSize orderSize = new OrderSize();
        orderSize.setOrderId("1");
        orderSize.setOrderSize(2);
        OrderSize orderSize1 = new OrderSize();
        BeanUtils.copyProperties(orderSize1, orderSize);
        System.out.println(orderSize1.getOrderId());
        System.out.println(orderSize1.getOrderSize());
    }

    /**
     *
     */
    @Test
    public void test1() {
        boolean checkpw = BCrypt.checkpw("234567", "$2a$10$mQKVisSQOmbtnYRcmpZq6eudb.HF5xhmzF5gMs566YphBZawhaTfS");
        System.out.println(checkpw);
    }

    /**
     *
     */
    @Test
    public void test2() {
        int num = 50;
        int i = num++ * 2;
        System.out.println(i);
    }
}
